//package com.xinggq.box.ai.service.controller;
//
//import com.xinggq.box.ai.service.adaptor.AIChatService;
//import lombok.RequiredArgsConstructor;
//import org.springframework.http.MediaType;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//import reactor.core.publisher.Flux;
//
///**
// * @Description
// * @Author xinggq
// * @Date 2025/4/14
// */
//@RestController
//@RequiredArgsConstructor
//public class ChatController {
//
//
//  private final AIChatService chatService;
//
//
//  @GetMapping(value = "/ai/chat")
//  public String chat(
//      @RequestParam(value = "message", defaultValue = "你好") String message) {
//    return chatService.chat(message);
//  }
//
//  @GetMapping(value = "/ai/chatStream", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
//  public Flux<String> chatStream(
//      @RequestParam(value = "message", defaultValue = "你好") String message) {
//    return chatService.chatStream(message);
//  }
//
//
//}
